package vip.zhenzicheng.design_patterns.state.before;

/**
 * @author zhenzicheng
 * @date 2022-05-26 19:16
 */
public class Client {
  public static void main(String[] args) {
    //创建电梯对象
    Lift lift = new Lift();

    //设置当前电梯的状态
    lift.setState(ILift.RUNNING_STATE);

    //打开
    lift.open();
    lift.close();
    lift.run();
    lift.stop();
  }
}
